<%
    require 'aboutyou-sdk'

    ay = AY.new(100, '3ed93394c2b5ebd12c104b177b928ad0')
    product_result = ay.fetch_products_by_eans(['419596663'], [AboutYou::SDK::Criteria::ProductFields::VARIANTS])

    product_result.products.each do |product|
        variants = product.variants_by_ean('419596663')
        variants.each do |variant|
%>
            <%= 'Anzahl: ' + String(variant.quantity) %>
<%
        end
    end
%>
